package com.jspgou.cms.dao;

import java.util.Date;

import com.jspgou.common.hibernate3.Updater;
import com.jspgou.common.page.Pagination;
import com.jspgou.cms.entity.Message;

public interface MessageDao {
	public Pagination getPage(Long sendMemberId,Long receiverMemberId,String title,
			Date sendBeginTime,Date sendEndTime,Boolean status,Integer box,Boolean cacheable,
			int pageNo, int pageSize);

	public Message findById(Integer id);

	public Message save(Message bean);

	public Message updateByUpdater(Updater<Message> updater);
	
	public Message update(Message bean);

	public Message deleteById(Integer id);
	
	public Message[] deleteByIds(Integer[] ids);
}